import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;

public class PlantPanel extends JPanel {
    Scene2 scene2 = new Scene2();
    public PlantPanel(){
        Font font = new Font("Playbill",Font.PLAIN,30);
        UIManager.put("Button.font", font);
        this.setLayout(null);
        JButton button = new JButton("Next");
        button.setBounds(1500,600,100,50);
        this.add(button);
        button.addActionListener((ActionEvent e)->{

        });
    }
    public void paint(Graphics g) {
        super.paint(g);
        g.drawImage(scene2.map.get("scene2-bg"),80,40,null);

        Font font = new Font("宋体",Font.PLAIN,30);
        g.setFont(font);
        g.drawString("碳循环，是指碳元素在地球上的生物圈、岩石圈、水圈及大气圈中交换，并随地球的",
                900,200);
        g.drawString("运动循环不止的现象.现在你来到了植物的体内进行循环.绿色植物从大气中吸收二氧化" ,900,300
                );
        g.drawString("碳，在水的参与下经光合作用转化为葡萄并释放出氧气.",900,400);

    }

}
